namespace AuditSample
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("WF_Instance")]
    public partial class WorkFlowInstance
    {
        [StringLength(50)]
        public string Id { get; set; }

        [Required]
        [StringLength(100)]
        public string Type { get; set; }

        [Required]
        [StringLength(50)]
        public string Drafter { get; set; }

        [Required]
        [StringLength(500)]
        public string Title { get; set; }

        [Required]
        [StringLength(50)]
        public string BusinessId { get; set; }

        [StringLength(1000)]
        public string BussinessUrl { get; set; }

        [StringLength(50)]
        public string RecordNumber { get; set; }

        [StringLength(50)]
        public string AuditRole { get; set; }

        [StringLength(50)]
        public string Auditer { get; set; }

        [StringLength(50)]
        public string State { get; set; }

        public bool IsCompleted { get; set; }

        public bool IsCancelled { get; set; }

        public DateTime AddedDate { get; set; }

        [Required]
        [StringLength(50)]
        public string AddedBy { get; set; }

        public DateTime UpdatedDate { get; set; }

        [Required]
        [StringLength(50)]
        public string UpdatedBy { get; set; }
    }
}
